<%@page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@page import="org.jpass.dc.common.bean.Page" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>PaaS平台IDE--管理员管理</title>
<link href="/daycodefront/backstage/css/userManage.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	function initPageInfo(){
		
	}
	//修改管理员信息
	function updateAdmin(id){
		var src = "adminInfo?&id=" + id;
		window.parent.frames.msgBox('adminInfoBox', '管理员信息',"adminInfoIframe",src);
	}
	
	//删除管理员
	function deleteAdmin(deleteIds){
		if(deleteIds!=""){
			if(confirm("确定要删除此管理员？")){ 
				window.location.href = "deleteAdmin?&deleteIds=" + deleteIds;
			}else{
				return false;
			}
		}
	}
	
	//重置管理员密码
	function resetAdminPass(id){
		//var src = "resetAdminPassForm?&id=" + id;
		//window.parent.frames.msgBox('resetAdminPassBox', '重置管理员密码',"resetAdminPassIframe",src);
	}
	
</script>
</head>
<body onload="initPageInfo();">
	<div class="content">
	<table width="100%" border="0">
		<tr class="title">
			<td width="3%" style="text-align:center;"><input id="allSelected" type="checkbox" onclick="allSelected();"/></td>
			<td width="10%"><span>名称</span></td>
			<td width="10%"><span>真实姓名</span></td>
			<td width="10%"><span>权限等级</span></td>
			<td width="7%"><span>创建人</span></td>
			<td width="12%"><span>创建时间</span></td>
			<td width="10%"><span>是否在线</span></td>
			<td width="10%"><span>登录次数</span></td>
			<td width="13%"><span>上次登录时间</span></td>
			<td width="15%"><span>操作</span></td>
		</tr>
		<s:iterator value="#request.list" var="admin" status="index">
			<tr class="record">
				<td class="number" style="text-align:center;">
					<input type="checkbox" name="recordIds" value="<s:property value="#admin.id"/>"/>
				</td>
				<td><s:property value="#admin.name"/></td>
				<td><s:property value="#admin.realName"/></td>
				<td><s:property value="#admin.authorityName"/></td>
				<td><s:property value="#admin.creater"/></td>
				<td style="text-align:center;"><s:date name="#admin.createdTime" format="yyyy-MM-dd HH:mm:ss"/></td>
				<td style="text-align:center;"><s:property value="#admin.isOnline==1? '是':'否'"/></td>
				<td style="text-align:center;"><s:property value="#admin.loginTimes"/></td>
				<td style="text-align:center;"><s:date format="yyyy-MM-dd HH:mm:ss" name="#admin.lastSignTime" /></td>
				<td style="text-align:center;">
					<input type="hidden"/>
					<!--
					<a onclick="resetAdminPass('<s:property value="#admin.id"/>');">重置密码</a>
					-->
					<a onclick="updateAdmin('<s:property value="#admin.id"/>');">修改</a>
					<a onclick="deleteAdmin('<s:property value="#admin.id"/>');">删除</a>
				</td>
			</tr>
		</s:iterator>
	</table>
	</div>
</body>
</html>